import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false

App.mpType = 'app'

// 实用工具库
import lodash from 'lodash'
Vue.prototype.$_ = lodash

// 引入全局uView
import uView from 'uview-ui'
Vue.use(uView);

//字号适配
Vue.prototype.fontSize = '4.2px'

const app = new Vue({
    ...App
})

import httpInterceptor from '@/common/http.interceptor.js'
Vue.use(httpInterceptor, app)

import webSocket from '@/common/websocket.js'
webSocket.ws.that = app
Vue.prototype.ws = webSocket.ws

app.$mount()